public class Main_59 {
    public static void main(String[] args) {
        GenerateMatrix_59 generator = new GenerateMatrix_59();
        int n = 3;
        int[][] matrix = generator.generateMatrix(n);
        printMatrix(matrix);
    }

    private static void printMatrix(int[][] matrix) {
        for (int[] row : matrix) {
            for (int num : row) {
                System.out.print(num + " ");
            }
            System.out.println();
        }
    }
}
